package com.ruoyi.temu.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 备货单对象 temu_sub_purchase_order
 * 
 * @author ruoyi
 * @date 2023-09-25
 */
public class TemuSubPurchaseOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 备货单单号 */
    private String subPurchaseOrderSn;

    /** 备货母单单号 */
    @Excel(name = "备货母单单号")
    private String originalPurchaseOrderSn;

    /** 商家id */
    @Excel(name = "商家id")
    private Long supplierId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** spu_id */
    @Excel(name = "spu_id")
    private Long spuId;

    /** skc_id */
    @Excel(name = "skc_id")
    private Long skcId;

    /** skc图片 */
    @Excel(name = "skc图片")
    private String skcPicture;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliverTime;

    /** 首单标记 */
    @Excel(name = "首单标记")
    private Long isFirst;

    /** 紧急程度 */
    @Excel(name = "紧急程度")
    private Long urgencyType;

    /** 备货单sku信息信息 */
    private List<TemuSubPurchaseOrderSku> temuSubPurchaseOrderSkuList;

    public void setSubPurchaseOrderSn(String subPurchaseOrderSn) 
    {
        this.subPurchaseOrderSn = subPurchaseOrderSn;
    }

    public String getSubPurchaseOrderSn() 
    {
        return subPurchaseOrderSn;
    }
    public void setOriginalPurchaseOrderSn(String originalPurchaseOrderSn) 
    {
        this.originalPurchaseOrderSn = originalPurchaseOrderSn;
    }

    public String getOriginalPurchaseOrderSn() 
    {
        return originalPurchaseOrderSn;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setSpuId(Long spuId) 
    {
        this.spuId = spuId;
    }

    public Long getSpuId() 
    {
        return spuId;
    }
    public void setSkcId(Long skcId) 
    {
        this.skcId = skcId;
    }

    public Long getSkcId() 
    {
        return skcId;
    }
    public void setSkcPicture(String skcPicture) 
    {
        this.skcPicture = skcPicture;
    }

    public String getSkcPicture() 
    {
        return skcPicture;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }
    public void setDeliverTime(Date deliverTime) 
    {
        this.deliverTime = deliverTime;
    }

    public Date getDeliverTime() 
    {
        return deliverTime;
    }
    public void setIsFirst(Long isFirst) 
    {
        this.isFirst = isFirst;
    }

    public Long getIsFirst() 
    {
        return isFirst;
    }
    public void setUrgencyType(Long urgencyType) 
    {
        this.urgencyType = urgencyType;
    }

    public Long getUrgencyType() 
    {
        return urgencyType;
    }

    public List<TemuSubPurchaseOrderSku> getTemuSubPurchaseOrderSkuList()
    {
        return temuSubPurchaseOrderSkuList;
    }

    public void setTemuSubPurchaseOrderSkuList(List<TemuSubPurchaseOrderSku> temuSubPurchaseOrderSkuList)
    {
        this.temuSubPurchaseOrderSkuList = temuSubPurchaseOrderSkuList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subPurchaseOrderSn", getSubPurchaseOrderSn())
            .append("originalPurchaseOrderSn", getOriginalPurchaseOrderSn())
            .append("supplierId", getSupplierId())
            .append("productName", getProductName())
            .append("spuId", getSpuId())
            .append("skcId", getSkcId())
            .append("skcPicture", getSkcPicture())
            .append("status", getStatus())
            .append("purchaseTime", getPurchaseTime())
            .append("deliverTime", getDeliverTime())
            .append("isFirst", getIsFirst())
            .append("urgencyType", getUrgencyType())
            .append("temuSubPurchaseOrderSkuList", getTemuSubPurchaseOrderSkuList())
            .toString();
    }
}
